import request from '@/utils/request'

// 获取任务日志列表
export function fetchScheduleJobLogList(params) {
    return request({
        url: '/schedule/log/list',
        method: 'get',
        params
    })
}

// 删除任务日志
export function deleteScheduleJobLog(id) {
    return request({
        url: `/schedule/log/${id}`,
        method: 'delete'
    })
}

// 清空任务日志
export function cleanScheduleJobLog() {
    return request({
        url: '/schedule/log/clean',
        method: 'delete'
    })
}

// 导出任务日志
export function exportScheduleJobLog(params) {
    return request({
        url: '/schedule/log/export',
        method: 'get',
        params,
        responseType: 'blob'
    })
} 